﻿using System;
using System.Collections.Generic;
using System.Text;
using AMS.DataAccess.Sql;

namespace AMS.Configuration.DB
{
    /// <summary>
    /// 
    /// </summary>
    internal class ViewObjectManager
    {
        public ViewObjectManager(ViewObjectDBModel model)
        {
            Model = model;
        }

        public ViewObjectDBModel Model { get; private set; }

        public ViewInfo GetViewInfo(string viewName)
        {
            SqlBuilder sql = new SqlBuilder();
            sql.Add("SELECT *");
            sql.Add("FROM ", Model.ViewObjectTableName);
            sql.Add("WHERE ", new SqlExpression("view_name", viewName));

            //System.Data.IDataAdapter adapter = new
            return null;
        }
    }
}
